<%= form_tag({:action=> "search"}, { :onSubmit => "Element.show('wait');" }) %>
	<table>
		<tr>
			<td>
				<label for="searchtext">
					<font size="1">
						<b>Live TR Search:</b>
					</font>
				</label>
			</td>
			<td>
				<%= text_field_tag 'searchtext' %> 
			</td>
			<td>
				<img 	alt="wait" 
						id="wait" 
						src="/images/wait.gif" 
						style="display:none;position:absolute;" />
			</td>
		</tr>
	</table>


<%= observe_field(:searchtext,
                 :frequency => 0.5,
                 :update => :search_hits,
                 :loading => "Element.show('wait')",
                 :complete => "Element.hide('wait')",
				 :with=>"find",
                 :url => { :action => :live_search }) %>

<div id="search_hits"></div>